<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.myfirefly.cn/tag/auth" prefix="auth"%>
<script type="text/javascript">
$(document).ready(function(){
	var url = 'spfTradeContractWebimageAudit/imglist.do?contractId=${contractId}';
	var successCallBack = function(result){
		var html = "";
		html += '<div style="top:0px;">'
		html += '<div style="height:100%;overflow-y: auto;"><div class="attachment">';
		html += '<div class="attachment_list" id="contract_attachment">';
		if(result.data && result.data.length > 0){
			$.each(result.data, function(key, val) {     
				html+='<div class="attachment_box">';
				html+='<a href="javascript:void(0);"  onclick="atlas(this)">';
				html+='<div class="attachment_img">';
				html+='<img src='+val.imgUrl+'>';
				html+='</div>';
				html+='</a>';
				html+='</div>';
			});
		}
		html+='</div></div></div>';
		$("#contractFileForm_div").html(html);
	}
	myAjax(url,	"", true,successCallBack,null);
});
</script>
<div class="bjui-pageContent">
	
	<div style="height: 92%;position: relative;" id="contractFileForm_div">
		
	</div>

</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn btn-red cancel" data-icon="remove">关闭</button></li>
		<auth:has funcId="spfTradeContractWebimageAudit" action="/spfTradeContractWebimageAudit/back.do">
		<li><button type="button" class="btn btn-orange back" data-icon="arrow-left">退回</button></li>
		</auth:has>
		<auth:has funcId="spfTradeContractWebimageAudit" action="/spfTradeContractWebimageAudit/pass.do">
		<li><button type="button" class="btn btn-blue pass" data-icon="arrow-circle-o-down">通过</button></li>
		</auth:has>
	</ul>
</div>
